<%-- 
    Document   : viewSession
    Created on : Dec 26, 2009, 3:27:45 PM
    Author     : Administrator
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib  prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<table border="1">
    <tr><th colspan="5">${session.name}</th></tr>
    <tr><th></th>
        <th>Account</th>
        <th>Password</th>
        <th>Test content</th>
        <th>Test result</th>
    </tr>
    <c:forEach var="test" items="${session.tests}" varStatus="counter">
        <tr>
            <td>${counter.count}</td>
            <td>${test.loginIdentity}</td><td>${test.loginPassword}</td>
            <td><a href="<%=request.getContextPath()%>/test/preview?id=${test.autoId}">Preview</a></td>
            <td>${test.result}
                (<a href="<%=request.getContextPath()%>/test/review?id=${test.autoId}">Review</a>)
            </td>
        </tr>
    </c:forEach>
</table>
<div>
    <a href="<%=request.getContextPath()%>/test/editSession?id=${session.autoId}">Assign proctors</a>
</div>
